package com.fingard.dsp.bank.reqrespobj.balancecheckconfirm.detail;

import com.fingard.text.StringHelper;
import com.fingard.xml.XElement;

public class ReqBalCheckConfirmDetail {
    public String actNum;
    //指令顺序号
    public String iSeqno;
    //存单号码
    public String depositNo;
    //借据号
    public String creditNo;
    //对账单编号
    public String statementNumber;
    //对账结果
    public String dzFlag;
    //币种
    public String actCur;
    //客户余额
    public String custActBal;
    //客户发生额
    public String custAmountIncurred;
    //不符原因
    public String notConfirmReason;
    //业务参考号，类似对账码
    public String busRef;
    //对账年月，格式：yyyyMM
    public String yearMonth;
    //条形码编号
    public String barCode;
    //每页账户顺序号
    public String barSeq;
    //活期账号
    public String accNbr;
    //账户序号
    public String actSeq;
    //明细对账情况（未达帐、疑义帐）
    //                   1-企业已收款银行未收款入账款项
    //                   2-企业已付款银行未付款记账款项
    //                   3-银行已收款、企业尚未收款记账（未达账项）
    //                   4-银行已收款、企业尚未收款记账（疑义明细）
    //                   5-银行已付款、企业尚未付款记账（未达账项）
    //                   6-银行已付款、企业尚未付款记账（疑义明细）
    //                   7-其它
    public String deDZFlag;
    //联系电话，不符时必填
    public String telNbr;

    public String actArea;

    public ReqBalCheckConfirmDetail(XElement p_xelement) throws Exception{
        actNum = p_xelement.getSingleText("ActNum");
        iSeqno = p_xelement.getSingleText("ISeqno");
        depositNo = p_xelement.getSingleText("DepositNo");
        creditNo = p_xelement.getSingleText("CreditNo");
        if(StringHelper.hasAnyChar(p_xelement.getSingleText("StatementNumber"))){//
        	statementNumber = p_xelement.getSingleText("StatementNumber");
        }else{
        	statementNumber = p_xelement.getSingleText("DZDNo");
        }
        dzFlag = p_xelement.getSingleText("DZFlag");
        if(StringHelper.hasAnyChar(p_xelement.getSingleText("ActCur"))){
        	actCur = p_xelement.getSingleText("ActCur");
        }else{
        	actCur = p_xelement.getSingleText("CurrCode");
        }
        custActBal = p_xelement.getSingleText("AtsBalance");
        custAmountIncurred = p_xelement.getSingleText("AtsAmountIncurred");
        notConfirmReason = p_xelement.getSingleText("NotConfirmReason");
        busRef = p_xelement.getSingleText("BusRef");
        yearMonth = p_xelement.getSingleText("YearMonth");
        barCode = p_xelement.getSingleText("BarCode");
        barSeq = p_xelement.getSingleText("BarSeq");
        accNbr = p_xelement.getSingleText("AccNbr");
        actSeq = p_xelement.getSingleText("ActSeq");
        deDZFlag = p_xelement.getSingleText("DeDZFlag");
        telNbr = p_xelement.getSingleText("TelNbr");
        actArea = p_xelement.getSingleText("ActArea");
    }
}
